package diShiWuZhou;

import java.io.BufferedReader;
import java.io.FileReader;

public class san {
    public static void main(String[] args) {
        String srcFilePath="D:\\demo02.txt";
        try(
                BufferedReader br=new BufferedReader(new FileReader(srcFilePath));
                ){
            String line;//记住每次读取的一行数据
            StringBuffer stringBuffer=new StringBuffer();
            while ((line= br.readLine())!=null){
                stringBuffer.append(line);
            }
            System.out.println(stringBuffer);
        }catch (Exception e){
            e.printStackTrace();
        }

    }
}
